import java.util.Arrays;
public class Test6{
    public static void main(String[] args) {
        int[] a = new int[5];
        int[] b = new int[5];
        Arrays.fill(a,1);
        Arrays.fill(b,1,5,1);
        for(int i=0;i<a.length;i++){
            System.out.println("a: "+a[i]);
        }
        for(int i=0;i<b.length;i++){
            System.out.println("b: "+b[i]);
        }
        if(Arrays.equals(a,b)){
            System.out.println("a,b相等");
        }else {
            System.out.println("a,b不相等");
        }
    }
}